package cn.huiyunche.base.service.enums;

public enum UserStatusEnum {

    T(10, "上线"),
    F(20, "下线");

    private final int value;
    private final String text;

    UserStatusEnum(int value, String text) {
        this.value = value;
        this.text = text;
    }

    public int getValue() {
        return value;
    }

    public String getText() {
        return text;
    }

    public static UserStatusEnum getByValue(int value) {
        for (UserStatusEnum temp : UserStatusEnum.values()) {
            if (temp.getValue() == value) {
                return temp;
            }
        }
        return null;
    }

}
